package com.example.springboot_freemark_demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    @RequestMapping("/index")
    public String getIndexPage(Model model){
        model.addAttribute("message1", "测试消息1");
        model.addAttribute("message2", "测试消息2");
        return "index";
    }
}
